home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form BlankForm
- BackColor = &H00000000&
- BorderStyle = 0 'None
- ClientHeight = 5820
- ClientLeft = 1080
- ClientTop = 1215
- ClientWidth = 7365
- ControlBox = 0 'False
- Height = 6225
- Icon = BLANK.FRX:0000
- Left = 1020
- LinkTopic = "Form1"
- ScaleHeight = 388
- ScaleMode = 3 'Pixel
- ScaleWidth = 491
- Top = 870
- Width = 7485
- Begin Label Label2
- AutoSize = -1 'True
- BackColor = &H00000000&
- Caption = "This screen saver does not do anything."
- ForeColor = &H00FFFFFF&
- Height = 195
- Left = 3120
- TabIndex = 1
- Top = 3960
- Width = 3435
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00000000&
- Caption = "Example screen saver. You an use this example to make your own screen saver :-)"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForeColor = &H00FFFFFF&
- Height = 900
- Left = 2400
- TabIndex = 0
- Top = 2640
- Width = 5055
- WordWrap = -1 'True
- End
- 'Option Explicit
- Dim lastX, lastY ' Last position of the moues
- Dim numLines ' Number of lines drawn so far
- Dim gTop, gLeft, gWidth, gHeight
- Dim gGrowing
- Dim gFileName(3)
- Dim gFileCounter
- Sub Form_KeyDown (KeyCode As Integer, Shift As Integer)
- EndScrnsave ' End screen blanking
- End Sub
- Sub Form_Load ()
- '--- Center this form
- Move 0, 0, Screen.Width, Screen.Height
- '--- Position the labels
- '--- This centers Label1
- LAbel1.Top = scaleheight / 2
- LAbel1.Left = scalewidth / 2 - LAbel1.Left
- '--- This positions Label2 under label1
- Label2.Top = LAbel1.Height + LAbel1.Top
- '''''''''''''''''''''
- '--- Hide the mouse
- HideMouse
- End Sub
- Sub Form_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
- If IsEmpty(lastX) Or IsEmpty(lastY) Then
- lastX = X
- lastY = Y
- End If
- '
- ' Only unblank the screen if the mouse moves quickly
- ' enough (more than 2 pixels at one time.
- '
- If Abs(lastX - X) > 2 Or Abs(lastY - Y) > 2 Then
- EndScrnsave ' End screen blanking
- End If
- lastX = X ' Remember last position
- lastY = Y
- End Sub
- Sub IMGmONSTER_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
- If IsEmpty(lastX) Or IsEmpty(lastY) Then
- lastX = X
- lastY = Y
- End If
- '
- ' Only unblank the screen if the mouse moves quickly
- ' enough (more than 2 pixels at one time.
- '
- If Abs(lastX - X) > 2 Or Abs(lastY - Y) > 2 Then
- EndScrnsave ' End screen blanking
- End If
- lastX = X ' Remember last position
- lastY = Y
- End Sub
- Sub IMGmONSTER_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
- If IsEmpty(lastX) Or IsEmpty(lastY) Then
- lastX = X
- lastY = Y
- End If
- '
- ' Only unblank the screen if the mouse moves quickly
- ' enough (more than 2 pixels at one time.
- '
- If Abs(lastX - X) > 2 Or Abs(lastY - Y) > 2 Then
- EndScrnsave ' End screen blanking
- End If
- lastX = X ' Remember last position
- lastY = Y
- End Sub
-